package com.exam.demo.mapper;

import com.exam.demo.domain.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author 46287
* @description 针对表【user】的数据库操作Mapper
* @createDate 2023-11-07 09:21:49
* @Entity com.exam.demo.domain.User
*/
public interface UserMapper extends BaseMapper<User> {

    @Select("select * from user where name = #{name} and passwd = #{passwd}")
    public User getUserByNameAndPasswd(User user);

    @Select("select * from user where name = #{name}")
    public List<User> getUserByName(User user);
}




